package net.lqy.aipan.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.web.multipart.MultipartFile;

/**
 * @title: FileUploadReq
 * @Author lqy
 * @Date: 2025-06-06 17:51
 * @Version 1.0
 */
@Data
@Accessors(chain = true)
@Schema(description = "文件上传请求参数")
public class FileUploadReq {

    @Schema(description = "文件名")
    @JsonProperty("file_name")
    private String fileName;

    @Schema(description = "文件唯一标识")
    private String identifier;

    @Schema(description = "文件")
    private MultipartFile file;

    @Schema(description = "父级文件夹ID")
    @JsonProperty("parent_id")
    private Long parentId;

//    @Schema(description = "文件大小")
//    @JsonProperty("file_size")
//    private Long fileSize;
}
